package me.learningandroid.ch2_5.returnstackdemo;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

public class BaseActivity extends AppCompatActivity {
    private ActivityCollector activityCollector = ActivityCollector.getInstance();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        activityCollector.onActivityCreated(this);
    }

    @Override
    protected void onDestroy() {
        activityCollector.onActivityDestroyed(this);
        super.onDestroy();
    }

    protected void oneClickFinish() {
        activityCollector.oneClickFinish();
    }
}
